<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
  <script src="../lib/vue-2.4.0.js"></script>
</head>
<body>
  <div id="app">
    <input type="text" name="name" v-model="name">
    <h2>{{name}}</h2>
    <textarea v-model="name"></textarea>
  </div>
</body>
<script>
  let app = new Vue({
    el: '#app',
    data: {
      name: '张三'
    }
  })
</script>
</html>